package com.yueyang.sojourn.server.service.attachdetail;

import com.yueyang.sojourn.server.model.po.AttachDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-12
 */
@Mapper
interface AttachDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AttachDetail record);

    int insertSelective(AttachDetail record);

    void insertList(List<AttachDetail> records);

    AttachDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AttachDetail record);

    int updateByPrimaryKey(AttachDetail record);

    List<AttachDetail> selectListByProjectId(@Param("sojournProjectId") Long sojournProjectId);

    List<AttachDetail> selectListByMerchId(@Param("sojournMerchId") Long sojournMerchId);

    List<AttachDetail> selectListByIds(List<Long> ids);
}
